from time import strftime


def list_to_str(list):
    stryy=None
    for ji in list:
        if stryy is None:
            stryy=f"{ji}\n\n"
        else:
            stryy=f"{stryy}{ji}\n\n"
    return stryy

#写入文本到文件
def write_file_from_get_frame(filename,str1):
    print(f'写入文件')

    jssjt = strftime('%H_%M_%S')
    str1 = str(jssjt) + "\n\n" + str(str1)

    fo = open(filename, "a+", encoding='utf-8')
    fo.write(str1)
    fo.close()
